<%@ page language="java" import="java.util.*,com.entity.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml10-transitional.dtd">
<html lang="zh-cn" xml:lang="zh-cn" xmlns="http://www.w3.org/1999/xhtml">
<head>
 <base href="<%=basePath%>" target="rightFrame"/>
<title>我的办公桌</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/theme/2/style.css" />
<link rel="stylesheet" type="text/css" href="/theme/2/mytable.css" />
</head>
<script type="text/javascript" src="/inc/mytable.js"></script>
<script type="text/javascript" src="/inc/js/utility.js"></script>
<script type="text/javascript">
window.setTimeout('this.location.reload();',1200000);
var my_pos=true;
var my_width=65;
var my_expand=true;
function _edit(module_id)
{
	 show_msg("optionBlock");
    $("optionBlockTitle").innerText=$("module_"+module_id+"_text").innerText+" 模块选项";
    $('display_lines').focus();
	 $('display_lines').value=lines_per_page(module_id);
	 $('scroll').checked=getCookie("my_scroll_1_"+module_id)=="true";
	 $('col_width').value=my_width;
	 $('module_id').value=module_id;
}
function _resize(module_id)
{
	 var module_i=$("module_"+module_id);
	 var head_i=$("module_"+module_id+"_head");
	 var body_i=$("module_"+module_id+"_body");
	 var img_i=$("img_resize_"+module_id);
	 var my_cookie=getCookie("my_expand_1");
	 my_cookie = (my_cookie==null || my_cookie=="undefined") ? "" : my_cookie;//alert(my_cookie)
	 if(body_i.style.display=="none")
	 {
	    module_i.className=module_i.className.substr(0,module_i.className.lastIndexOf(" "));
	    head_i.className=head_i.className.substr(0,head_i.className.lastIndexOf(" "));
	    body_i.style.display="block";
	    img_i.src=img_i.src.substr(0,img_i.src.lastIndexOf("/")+1)+"datagrid_sort_desc.gif";
	    img_i.title="折叠";

	    if(my_cookie.indexOf(module_id+",") == 0)
	       my_cookie = my_cookie.replace(module_id+",", "");
	    else if(my_cookie.indexOf(","+module_id+",") > 0)
	       my_cookie = my_cookie.replace(","+module_id+",", ",");

	    //my_expand=true;
       setCookie("my_expand_all_1", "");
	 }
	 else
	 {
	    module_i.className=module_i.className+" listColorCollapsed";
	    head_i.className=head_i.className+" moduleHeaderCollapsed";
	    body_i.style.display="none";
	    img_i.src=img_i.src.substr(0,img_i.src.lastIndexOf("/")+1)+"datagrid_sort_asc.gif";
	    img_i.title="展开";

	    if(my_cookie.indexOf(module_id+",") != 0 && my_cookie.indexOf(","+module_id+",") <= 0)
	       my_cookie += module_id+",";
	 }
	 setCookie("my_expand_1", my_cookie);
}
function resize_all()
{
   var img_all_resize=$("img_all_resize");
   var imgs=document.getElementsByTagName("IMG");
   var module_id_str="";
   for(var i=0;i<imgs.length;i++)
   {
      if(imgs[i].id.substr(0,11)!="img_resize_")
         continue;

      var module_id=imgs[i].id.substr(11,imgs[i].id.length);
      module_id_str+=module_id+",";
      if(my_expand && $("module_"+module_id+"_body").style.display!="none" || !my_expand && $("module_"+module_id+"_body").style.display=="none")
         _resize(module_id);
   }

   if(my_expand)
   {
      img_all_resize.src=img_all_resize.src.substr(0,img_all_resize.src.lastIndexOf("/")+1)+"datagrid_sort_asc.gif";
      setCookie("my_expand_1",module_id_str);
   }
   else
   {
      img_all_resize.src=img_all_resize.src.substr(0,img_all_resize.src.lastIndexOf("/")+1)+"datagrid_sort_desc.gif";
      setCookie("my_expand_1","");
   }

   my_expand=!my_expand;
   setCookie("my_expand_all_1", my_expand ? "" : "0");
}
function SetNums()
{
	 var today_lines=$('display_lines').value;
	 var col_width=$('col_width').value;
   if(today_lines=="" || checkNum(today_lines) || col_width=="" || checkNum(col_width))
   {
      alert("显示条数和栏目宽度必须是数字");
      return;
   }

   if(parseInt(today_lines)<=0 || parseInt(today_lines)>=1000)
   {
      alert("显示条数必须在1-1000之间");
      return;
   }
   if(parseInt(col_width)<=0 || parseInt(col_width)>100)
   {
      alert("栏目宽度必须在1-100之间");
      return;
   }
   setCookie("my_nums_1_"+$('module_id').value, today_lines);
   setCookie("my_scroll_1_"+$('module_id').value, $('scroll').checked);
   setCookie("my_width_1", col_width);

   my_width=col_width;

   $("msgBody").style.display = "none";
   $("msgCommand").style.display = "none";
   $("msgSuccess").style.display = "block";

   window.location.reload();
}

function getId(f)
{   
   if(!window.top.func_array)
   {
      if(f=="f17")	
   	     window.location="../../info/unit/" ;
   	  else if(f=="f18")
   	  	 window.location="../../info/dept/" ;
   	  else if(f=="f19")
   	  	 window.location="../../info/user/" ;
   }
   else
      window.top.openURL(f, window.top.func_array[f][0], window.top.func_array[f][1]);		 
}

</script>

<body>
<%Dlyh dlyh = (Dlyh)request.getSession().getAttribute("dlyh");
   if(!(dlyh.getZd().getTypename().endsWith("市")&&dlyh.getZd().getParentid().equals(745))&&!dlyh.getZd().getTypename().equals("河北省")){
 %>
<div id="desktop_config"></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
 <tr>
  <td valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
 <tr>
  <td id="col_l" width="65%" valign="top">
<div id="module_1" class="module listColor" style="overflow-y:yes ">
  <div class="head">
    <h4 id="module_1_head" class="moduleHeader">
      <a href="javascript:_resize(1);" class="expand">
      <img class="icon" id="img_resize_1" src="/images/datagrid_sort_desc.gif" title="折叠" /></a>    
        <span id="module_1_text" class="text" onclick="_resize(1);">待审核人员</span>
      <span id="module_1_title" class="title" style="cursor:move;"></span>
   </h4>
  </div>
  <div id="module_1_body" class="module_body" style="overflow-y: yes;">
    <div id="module_1_ul" class="module_div" style="height:250px; overflow-y: auto;  ">
    <table id="table1" width="97%" name="table1" border="1" style="border-collapse: collapse">
     <tr>
        <td>编号</td>
        <td>人员姓名</td>
        <td>提交时间</td>
        <td>审核状态</td>
       <%
        String dlyhzdid =(String) request.getSession().getAttribute("dlyhzdid");
        request.setAttribute("dlyhzdid",dlyhzdid);
       if((dlyh.getZd().getTypename().endsWith("县")||dlyh.getZd().getTypename().endsWith("区")||dlyh.getZd().getTypename().equals("武安市"))&&!dlyh.getZd().getTypename().equals("工业园区")){ %>
        <td> </td>
       <%} %>
     </tr>
      
    <c:forEach var="s" items="${shrylist}" varStatus="index">
    <tr>
       <td>${s.bh }</td>
       <td>
          <a href="ryzlGet.do?id=${s.id}" title=""><font color=''>${s.xm}</font></a>
       </td>
       <td>${s.addTimeString }</td>
       <td><c:if test="${s.zdshr.id==null }">待专职书记审核</c:if> 
        <c:if test="${s.zdshr.id!=null}">
           <c:if test="${s.zdshr.id!=dlyhzdid }">
                 待县人事科审核
           </c:if>
           <c:if test="${s.zdshr.id==dlyhzdid}">
              ${s.shzt}
           </c:if>
         </c:if>
       </td>
    <%if((dlyh.getZd().getTypename().endsWith("县")||dlyh.getZd().getTypename().endsWith("区")||dlyh.getZd().getTypename().equals("武安市"))&&!dlyh.getZd().getTypename().equals("工业园区")){ %>
    <td>
    <a href="ryzlList.do?zbm=&czf==&cs=&shzt=%e6%9c%aa%e9%80%9a%e8%bf%87"><font color=''>操作</font></a>
    </td>
    <%} %>
    </tr>
    </c:forEach>
    </table>
<script>
function open_notify(NOTIFY_ID,FORMAT)
{
 URL="/general/notify/show/read_notify.php?NOTIFY_ID="+NOTIFY_ID;
 myleft=(screen.availWidth-780)/2;
 mytop=100
 mywidth=780;
 myheight=500;
 if(FORMAT=="1")
 {
    myleft=0;
    mytop=0
    mywidth=screen.availWidth-10;
    myheight=screen.availHeight-40;
 }
 window.open(URL,"read_notify"+NOTIFY_ID,"height="+myheight+",width="+mywidth+",status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}

function get_notify(req)
{
   var obj = $("module_1_ul");
   if(!obj) return;
   
   if(typeof(req) != "object")
   {
      obj.innerHTML = '<img src="/images/loading.gif" align="absMiddle"> 加载中，请稍候……';
      _get("notify.php", "MAX_COUNT=15&TYPE_ID="+req+"&MODULE_SCROLL=false&MODULE_ID=1", arguments.callee);
   }
   else
   {
      obj.innerHTML = req.status==200 ? req.responseText : ("获取内容错误，代码："+req.status);
   }
}
</script></div>
  </div>
</div>
<div id="module_2" class="module listColor">
  <div class="head">
    <h4 id="module_2_head" class="moduleHeader">
      <a href="javascript:_resize(2);" class="expand">
      <img class="icon" id="img_resize_2" src="/images/datagrid_sort_desc.gif" title="折叠" /></a>     
      <span id="module_2_text" class="text" onclick="_resize(2);">到期员工提醒</span>
      <span id="module_2_title" class="title" style="cursor:move;"></span>
      <span id="module_2_op" class="close">
        <a href="javascript:NextPage('2',-1);" id="module_2_link_pre"  title="上一页" class="PageLinkDisable"><b>▲</b></a>
        <a href="javascript:NextPage('2',1);"  id="module_2_link_next" title="下一页"><b>▼</b></a>
      </span>    </h4>
  </div>
  <div id="module_2_body" class="module_body" style="">
    <div id="module_2_ul" class="module_div" style="height:140px;overflow-y: auto;"><ul>
    
    <c:forEach var="l" items="${list}" varStatus="index">
    <li><a href="ryzlGet.do?id=${l.id}" title=""><font color=''>${l.xm}</font></a>
    &nbsp;(${l.addTimeString})</li>
    </c:forEach>
    </ul></div></div>
    </div>
    

    </td>
    
  <td id="col_r" valign="top" style="padding-right:10px;">
   <div id="module_3" class="module listColor" style="overflow-y: auto; ">
  <div class="head">
    <h4 id="module_3_head" class="moduleHeader">
      <a href="javascript:_resize(3);" class="expand">
      <img class="icon" id="img_resize_3" src="/images/datagrid_sort_desc.gif" title="折叠" /></a>    
        <span id="module_3_text" class="text" onclick="_resize(3);">退休年龄提醒</span>
      <span id="module_3_title" class="title" style="cursor:move;"></span>
   </h4>
  </div>
  <div id="module_3_body" class="module_body" style="overflow: yes;">
    <div id="module_3_ul" class="module_div" style="height:150px; overflow-y: auto;">
<c:forEach var="l" items="${nllist}" varStatus="index">
    <li><a href="ryzlGet.do?id=${l.id}" title=""><font color=''>${l.xm}</font></a>
    &nbsp;(${l.addTimeString})</li>
    </c:forEach>

<script>
function open_notify(NOTIFY_ID,FORMAT)
{
 URL="/general/notify/show/read_notify.php?NOTIFY_ID="+NOTIFY_ID;
 myleft=(screen.availWidth-780)/2;
 mytop=100
 mywidth=780;
 myheight=500;
 if(FORMAT=="1")
 {
    myleft=0;
    mytop=0
    mywidth=screen.availWidth-10;
    myheight=screen.availHeight-40;
 }
 window.open(URL,"read_notify"+NOTIFY_ID,"height="+myheight+",width="+mywidth+",status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}

function get_notify(req)
{
   var obj = $("module_3_ul");
   if(!obj) return;
   
   if(typeof(req) != "object")
   {
      obj.innerHTML = '<img src="/images/loading.gif" align="absMiddle"> 加载中，请稍候……';
      _get("notify.php", "MAX_COUNT=15&TYPE_ID="+req+"&MODULE_SCROLL=false&MODULE_ID=1", arguments.callee);
   }
   else
   {
      obj.innerHTML = req.status==200 ? req.responseText : ("获取内容错误，代码："+req.status);
   }
}
</script></div>
  </div>
</div>
<script >
function send_email2(FROM_ID,FROM_NAME)
{
   var top = (screen.availHeight-600)/2;
   var left= (screen.availWidth-800)/2;  
   window.open("../../email/new/?TO_ID="+FROM_ID+"&TO_NAME="+FROM_NAME,"","height=600,width=800,status=0,toolbar=no,menubar=no,location=no,scrollbars=no,top="+top+",left="+left+",resizable=yes");
}
</script>



<div id="module_6" class="module listColor">
  <div class="head">
    <h4 id="module_6_head" class="moduleHeader">
      <a href="javascript:_resize(6);" class="expand"><img class="icon" id="img_resize_6" src="/images/datagrid_sort_desc.gif" title="折叠" /></a>  
          <span id="module_6_text" class="text" onclick="_resize(6);">系统管理</span>
      <span id="module_6_title" class="title" style="cursor:move;"></span>

      <span id="module_6_op" class="close">
        <a href="javascript:NextPage('6',-1);" id="module_6_link_pre"  title="上一页" class="PageLinkDisable"><b>▲</b></a>
        <a href="javascript:NextPage('6',1);"  id="module_6_link_next" title="下一页"><b>▼</b></a>
        <a href="/general/email/?MAIN_URL=new" title="撰写">
        <img src="/images/email_edit.png"/></a>&nbsp;<a href="javascript:_edit(6);" title="设置"><img src="/images/pencil.png" /></a>&nbsp;<a href="javascript:_del(6);" title="关闭模块"><img src="/images/close_x.png" /></a>        </span>    </h4>
  </div>
  <div id="module_6_body" class="module_body" style="height: 55px">
    <a href="dlyh_updatepwd.jsp">修改密码</a> | <a href="dlyh.do?state=dlyhinfo">个人信息</a>|
       <a href="dlyh.do?state=findall">用户列表</a> 
       <%if((dlyh.getZd().getTypename().endsWith("县")||dlyh.getZd().getTypename().endsWith("区")||dlyh.getZd().getTypename().equals("武安市"))&&!dlyh.getZd().getTypename().equals("工业园区"))
	  { %>
       | <a href="zd.do?state=showlist">单位管理</a>
       <%} %>
      <div id="module_6_type_op" class="moduleTypeOp"></div>
    </div>
  </div>

<div id="module_7" class="module listColor">
  <div class="head">
    <h4 id="module_7_head" class="moduleHeader">
      <a href="javascript:_resize(7);" class="expand"><img class="icon" id="img_resize_7" src="/images/datagrid_sort_desc.gif" title="折叠" /></a>    
        <span id="module_7_text" class="text" onclick="_resize(7);">常用网址</span>
      <span id="module_7_title" class="title" style="cursor:move;"></span>
      <span id="module_7_op" class="close">

        <a href="javascript:NextPage('7',-1);" id="module_7_link_pre"  title="上一页" class="PageLinkDisable"><b>▲</b></a>
        <a href="javascript:NextPage('7',1);"  id="module_7_link_next" title="下一页"><b>▼</b></a>
        <a href="/general/url.php">全部</a>&nbsp;<a href="javascript:_edit(7);" title="设置"><img src="/images/pencil.png" /></a>&nbsp;<a href="javascript:_del(7);" title="关闭模块"><img src="/images/close_x.png" /></a>        </span>    </h4>
  </div>
  <div id="module_7_body" class="module_body" style="">
    <div id="module_7_ul" class="module_div" style="height:100px;"><div style="float:left;width:49%;line-height:20px;">
      <ul>
        <li><a href="http://221.193.204.14/" target="_blank">办公平台</a></li>
      </ul></div><div style="float:right;width:49%;line-height:20px;">
        <ul><li><a href="http://www.hdrkjsw.cn/" target="_blank">邯郸计生委</a></li></ul></div></div>
  </div>
 </div>
</td>
 </tr>
</table>
  </td>
 </tr>

</table>
<%}else{
String sname= request.getParameter("sname");
 %>
<script>
  location.href="cjgzrs.jsp?keepThis=true&TB_iframe=true&height=300&width=500&sname=<%=sname%>";
  </script>
<%} %>
</body>
</html>